home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ssssyyyysssseeeevvvveeeennnntttt((((1111)))) ssssyyyysssseeeevvvveeeennnntttt((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- sysevent - System Log Event Capture System Daemon
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ssssyyyysssseeeevvvveeeennnntttt [----nnnn1111TTTT] [ ----ffff||||----FFFF syslog_pipe ] [ ----cccc config_file ]
- [ ----rrrr||||----RRRR reject_file ] [ ----tttt #threads ]
- [ ----EEEE regex_options] [ ----aaaa default_exec] [ ----AAAA default_dso]
- [ ----pppp #procs ]
- ssssyyyysssseeeevvvveeeennnnttttFFFFiiiilllltttteeeerrrr
- ssssyyyysssseeeevvvveeeennnntttt ----hhhh
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_y_s_e_v_e_n_t capture messages generated from ssssyyyyssssllllooooggggdddd(1m) and, using rrrreeeeggggeeeexxxx(3g)
- pattern stored in a configuration file, allow one or more user-defined
- action to be performed when a message match a given expression. ssssyyyysssseeeevvvveeeennnntttt
- is multi-threaded. Someone may also want to use the -_T mode to remove
- duplicates from the configuration file: the new configuration file will
- go on standard output.
-
- ssssyyyysssseeeevvvveeeennnntttt capture syslogd-generated messages using syslog pipe file
- mechanism. By default, /tmp/.sysevent is used and /etc/syslog.conf need
- the following entry:
-
- *.debug @|/tmp/.sysevent
-
- SSSSPPPPEEEECCCCIIIIAAAALLLL CCCCAAAASSSSEEEE: If the second form is used ( _s_y_s_e_v_e_n_t_F_i_l_t_e_r ) or ----1111
- command-line argument is used, _s_y_s_e_v_e_n_t will read one(1) line of data.
- Using that form implies ----tttt 1111 and ----nnnn. This is is intended to be used in
- /etc/syslog.conf like this:
- *.debug |/usr/sbin/syseventFilter /var/adm/SYSLOG
-
- NNNNOOOOTTTTEEEE:::: For this special case only, if the configuration file
- /etc/sysevent.config is missing, sysevent will silently exit and not
- report any error message to syslogd.
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
- ----dddd debug mode ( Imply ----nnnn ) . In debug mode, action are sent in
- foreground.
-
- ----nnnn no fork
-
- ----TTTT test mode. If set. the config_file is checked against duplicates
-
- ----1111 Run once. _s_y_s_e_v_e_n_t will read one(1) line of data. Using that form
- implies ----tttt 1111 and ----nnnn. This is is intended to be used in
- /etc/syslog.conf like this:
-
- *.debug |/usr/sbin/syseventFilter /var/adm/SYSLOG
-
- ----ffff syslog pipe specified in /etc/syslog.conf
- -f : named pipe ; -F : Unix Socket.
- Default: a named /tmp/.sysevent
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ssssyyyysssseeeevvvveeeennnntttt((((1111)))) ssssyyyysssseeeevvvveeeennnntttt((((1111))))
-
-
-
- ----cccc sysevent configuration file with up to 32768 entries.
- Default:/etc/sysevent.config
-
- ----rrrr Collect unknown event to reject file.
- -r : overwrite. -R: append mode
- Default is : off
-
- ----tttt # threads for regex analysis.Default:8
-
- ----EEEE regcomp(3) compilation flag.
- Default:0xb(REG_EXTENDED|REG_ICASE|REG_NOSUB)
-
- ----aaaa default action exec file. Default:/usr/local/bin/sysaction
-
- ----AAAA default action dso file. Default:/usr/lib/libsysevent.so
-
- Note: SIGHUP : re-read configuration file
-
-
-
- CCCCOOOONNNNFFFFIIIIGGGGUUUURRRRAAAATTTTIIIIOOOONNNN FFFFIIIILLLLEEEE SSSSYYYYNNNNTTTTAAAAXXXX (((( ////eeeettttcccc////ssssyyyysssseeeevvvveeeennnntttt....ccccoooonnnnffffiiiigggg ))))
- The configuration is read upon ssssyyyysssseeeevvvveeeennnntttt startup and re-read entirely when
- it is modified. For sanity purposes, most parametres are verified and, if
- in error, will prevent sysevent to start properly,. However, if sysevent
- is already started and some modifications to the configurations files are
- done, depending on the nature of the error, sysvent may exit or not. In
- that case, an error will be recorded using ssssyyyyssssllllooooggggdddd(1m) facility LOCAL0.
- Also, sending a SIGHUP will also tell ssssyyyysssseeeevvvveeeennnntttt to re-read the
- configuration file.
-
- Up to a maximum of 32768 entries ( one per line ) can be entered in the
- configuration file. Lines starting with a '#' are comments. Syntax is:
-
- aaaappppppppnnnnaaaammmmeeee mmmmoooodddduuuulllleeee aaaaccccttttiiiioooonnnn pppprrrriiiioooorrrriiiittttyyyy eeeexxxxpppprrrreeeessssssssiiiioooonnnn
-
- where:
-
- aaaappppppppnnnnaaaammmmeeee
- is the applcation generating the message
-
- mmmmoooodddduuuulllleeee
- is an additional information along with appname
-
- aaaaccccttttiiiioooonnnn
- see ACTION DESCRIPTION
-
- pppprrrriiiioooorrrriiiittttyyyy
- is a string representing the priority. If prefixed with KERN_,
- KERN_ is stripped.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ssssyyyysssseeeevvvveeeennnntttt((((1111)))) ssssyyyysssseeeevvvveeeennnntttt((((1111))))
-
-
-
- eeeexxxxpppprrrreeeessssssssiiiioooonnnn
- is the rrrreeeeggggeeeexxxx(3g) expression. It is STRONGLY recommended , for speed
- purposes, to anchor with a ^ at the beginning of string. Likely, it
- is also recommended to end with a '$' at the end of the string.
- Please enclose everything with double-quotes.
-
-
- AAAACCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Actions can be an internal one when you specify an integer ( 0x format
- accepted ) or a script or a function from within a dso. For a dso, the
- library is opened and closed at each invocation: this allow someone to
- change/test a dso function without actually re-starting ssssyyyysssseeeevvvveeeennnntttt. The
- _n_u_m_b_e_r format is for the sole purpose of ESP implementation.
-
- Each time an action is performed, sysevent _f_o_r_k and perform the action in
- background unless you are using debug mode ( with ----dddd switch). Also, it
- sets the following environment variables:
-
-
- FFFFRRRROOOOMMMMHHHHOOOOSSSSTTTT
- syslogd hostname generating the message
-
- PPPPRRRRIIIIOOOORRRRIIIITTTTYYYY
- If syslogd is running with "-S", priority of the logged message.
- Else, priority of the expression as read from sysevent config file.
-
- PPPPRRRRIIIIOOOORRRRIIIITTTTYYYYCCCCFFFF
- priority as read from sysevent config file
-
- LLLLIIIINNNNEEEECCCCFFFF
- sysevent config file line number
-
- AAAAPPPPPPPPNNNNAAAAMMMMEEEE
- application generating the message
-
- MMMMOOOODDDDUUUULLLLEEEE
- module generating the message
-
- AAAACCCCTTTTIIIIOOOONNNN
- the entire action string
-
- WWWWHHHHEEEENNNN date in ctime(3) format
-
- MMMMEEEESSSSSSSSAAAAGGGGEEEE
- the actual message
-
- NNNNOOOOTTTTEEEE:::: arguments is anything after the 1st comma in sysevent
- config file. User is responsible to parse it in this
- script. For example, if they are comma-seperated, you
- can:
-
- set -- `echo $* | tr -s ',' ' '`
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- ssssyyyysssseeeevvvveeeennnntttt((((1111)))) ssssyyyysssseeeevvvveeeennnntttt((((1111))))
-
-
-
- The action syntax is:
-
-
- iiiinnnntttteeeeggggeeeerrrr
- will internally call "/usr/sbin/esplogger -s $ACTION -m $MESSAGE"
-
- [[[[eeeexxxxeeeeccccuuuuttttaaaabbbblllleeee]]]],,,,[[[[,,,,aaaarrrrgggguuuummmmeeeennnntttt]]]]
- will execute "executable" with optional "argument" ( after the 1st
- comma ). If 'executable' is empty, the ----aaaa default script will be
- used.
-
- [[[[ddddssssoooo]]]]::::ffffuuuunnnnccccttttiiiioooonnnn[[[[,,,,aaaarrrrgggguuuummmmeeeennnntttt]]]]
- will execute "dso" function with optional "argument" ( after 1st
- comma ). The argument is passed as a string. If 'dso' is empty,
- the ----AAAA default dso will be used. It is illegal to use an empty
- function.
-
- NNNNOOOOTTTTEEEE::::
- _e_x_e_c_u_t_a_b_l_e or _d_s_o MMMMUUUUSSSSTTTT be full pathname, ie. start with a '/'.
-
- FFFFIIIILLLLEEEESSSS
- /etc/syslog.conf some modifications
- /etc/sysevent.config configuration file
- /usr/local/bin/sysaction default action script
- /usr/lib/libsysevent.so DSO containing user-function
- callable actions
-
- NNNNOOOOTTTTEEEESSSS
- o The configuration file can be automatically generated using
- ssssyyyysssseeeevvvveeeennnnttttIIIIrrrriiiixxxx(1m). This program reads /usr/lib/sysmon/notifier.config
- file and attempt to buid /etc/sysevent.config file.
-
-
- o Since the configuration file is mapped in memory using mmmmmmmmaaaapppp(2) call,
- using an NFS-mounted configuration file may cause problems due to
- the stateless nature of NFS.
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ssssyyyyssssllllooooggggdddd((((1111mmmm)))),,,, ssssyyyysssseeeevvvveeeennnnttttIIIIrrrriiiixxxx((((1111mmmm)))) ssssyyyysssseeeevvvveeeennnnttttEEEEpppp((((1111mmmm))))
-
- AAAAUUUUTTTTHHHHOOOORRRRSSSS////CCCCOOOOLLLLLLLLAAAABBBBOOOORRRRAAAATTTTOOOORRRRSSSS
- Michel Bourget: michel@sgi.com
- ESP(Embedded Support Partner) Project
- Electronic Services/Global Customer Service
- SGI
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-